from ..utils.register import Register, build_module

DATASET = Register('dataset')
PREPROCESS = Register('preprocess')


def build_dataset(cfg):
    return build_module(cfg, DATASET)


def build_preprocess_op(cfg):
    return build_module(cfg, PREPROCESS)
